package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * InnoDB free: 4096 kB
 * </p>
 *
 * @author zzw
 * @since 2022-06-18
 */
@Data
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 观看记录id
     */
        @TableId(value = "rcid", type = IdType.AUTO)
      private Integer rcid;

      /**
     * 用户id
     */
      private Integer uid;

      /**
     * 动漫id
     */
      private Integer ctid;

      /**
     * 播放路线id
     */
      private Integer pid;

      /**
     * 记录时间
     */
      @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime rcdate;
}
